const fs = require('fs');
const list = require('./data');

for (let i = 0; i < list.length; i++) {
  for (let j = 0; j < list[i]['costumes'].length; j++) {
    list[i]['costumes'][j]['path'] = 'costumes';
  }
  for (let j = 0; j < list[i]['sounds'].length; j++) {
    list[i]['sounds'][j]['path'] = 'sounds';
  }
}

fs.writeFile('./new.json', JSON.stringify(list), () => {
  console.log('success');
});
